<?php

namespace App\Exceptions;

use Exception;
use Throwable;

class ApiException extends Exception
{
    protected $message = "Api Exceptions";
    protected $code = 400;
    protected $errorCode = 40000;

    public function __construct()
    {
        parent::__construct($this->message,$this->code, null);
    }


    /**
     * @return int
     */
    public function getErrorCode(): int
    {
        return $this->errorCode;
    }
}
